import { fetch, fetchToken, fetchNoMsg, fetchForImg } from '@/utils/fetch'
/* ============推送管理-列表============*/
export function pushPageList(data) {
  return fetchNoMsg({
    url: '/goods-push/pageList',
    method: 'get',
    params: data
  })
}
/* ============推送管理-新增============*/
export function pushAdd(data) {
  return fetchNoMsg({
    url: '/goods-push/create',
    method: 'post',
    data
  })
}
/* ============推送管理-删除============*/
export function pushDelete(id) {
  return fetchNoMsg({
    url: '/goods-push/delete',
    method: 'get',
    params: { id: id }
  })
}
/* ============在商品推送管理页获得政策-列表============*/
export function pushPolicyList(data) {
  return fetchNoMsg({
    url: '/policy/get_goods_push_of_policy_list',
    method: 'get',
    params: data
  })
}
/* ============在商品推送管理页获得经纪人-列表============*/
export function pushBrokerList(data) {
  return fetchNoMsg({
    url: '/broker/get_goods_push_of_broker_list',
    method: 'get',
    params: data
  })
}
